<!--
 * @Author: wuwle
 * @Date: 2020-11-30 22:44:31
 * @LastEditors: wuwle
 * @LastEditTime: 2020-11-30 22:56:04
 * @FilePath: \demo\复习\css\案例\多行文字后隐藏\index.html
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .one {
        width: 500px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    </style>
  </head>
  <body>
    <p class="one">
      一行文本，超过添加省略号一行文本，超过添加省略号一行文本，超过添加省略号一行文本，超过添加省略号一行文本，超过添加省略号一行文本，超过添加省略号一行文本，超过添加省略号
    </p>
  </body>
</html>
